setX

open fun setX(view: View, value: Float)(source)

Deprecated

Use setX directly.

Sets the visual x position of this view, in pixels. This is equivalent to setting the translationX property to be the difference between the x value passed in and the current left property of the view as determined by the layout bounds.

Parameters

view

view to set the position on.

value

The visual x position of this view, in pixels.